﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>创建JavaScript对象</title>
</head>
<body>
    <p>创建JavaScript对象</p>
    <p id="demo"></p>
    <script>
        let person = {
            firstName: "liu",
            lastName: "peng",
            age: 23,
            eyeColor: "black"
        };

        document.write(person.firstname + person.lastname + "现在" + person.age + "岁了");

    </script>
</body>
</html>